package cn.jsu.projectmanage.service;

import cn.jsu.projectmanage.pojo.dto.JudgeInfo;
import cn.jsu.projectmanage.pojo.dto.TaskInfo;
import cn.jsu.projectmanage.pojo.vo.CommonResult;

import javax.servlet.http.HttpServletRequest;

public interface TaskService {

    public CommonResult createTask(TaskInfo taskInfo);

    public CommonResult updateTask(TaskInfo taskInfo);

    public CommonResult getTask(Integer userId,Integer taskId);

    public CommonResult deleteTask(Integer taskId);

    public CommonResult queryTaskById(Integer taskId);

    public CommonResult querySonTaskByGroup(Integer groupId,Integer status);

    public CommonResult queryTaskUser(Integer userId, Integer status);

    public CommonResult queryTaskedUser();

    public CommonResult updateTaskStatus(Integer taskId, Integer status);

    public CommonResult submitTaskReport(JudgeInfo judgeInfo, HttpServletRequest request);

    public CommonResult queryJudgeInfo();

    public CommonResult queryJudgeInfoUser();

    public CommonResult Judge(JudgeInfo judgeInfo);

    public CommonResult queryJudgeInfoUserByStatus(Integer userId,Integer status);

    public CommonResult queryJudgedInfoTaskByStatus(Integer taskId, Integer status);
}
